import axios from '../axios'

/* 
 * 服务监控模块
 */

// 获取服务监控信息
export const getServiceInfo = () => {
    return axios({
        url: '/monitor/service',
        method: 'get'
    })
}

// 获取系统信息
export const getSystemInfo = () => {
    return axios({
        url: '/monitor/system',
        method: 'get'
    })
}

// 获取JVM信息
export const getJvmInfo = () => {
    return axios({
        url: '/monitor/jvm',
        method: 'get'
    })
}

// 获取Tomcat信息
export const getTomcatInfo = () => {
    return axios({
        url: '/monitor/tomcat',
        method: 'get'
    })
}

// 获取健康状态
export const getHealth = () => {
    return axios({
        url: '/monitor/health',
        method: 'get'
    })
}

// 获取metrics信息
export const getMetrics = () => {
    return axios({
        url: '/monitor/metrics',
        method: 'get'
    })
} 